<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FabGL: mouse.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">FabGL
   </div>
   <div id="projectbrief">ESP32 Display Controller and Graphics Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.3 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('mouse_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle"><div class="title">mouse.h</div></div>
</div><!--header-->
<div class="contents">
<a href="mouse_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment">  Created by Fabrizio Di Vittorio (fdivitto2013@gmail.com) - &lt;http://www.fabgl.com&gt;</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment">  Copyright (c) 2019-2022 Fabrizio Di Vittorio.</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment">  All rights reserved.</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment"></span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="comment"></span> </div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="comment">* Please contact fdivitto2013@gmail.com if you need a commercial license.</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="comment"></span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="comment"></span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="comment">* This library and related software is available under GPL v3.</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="comment"></span> </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="comment">  FabGL is free software: you can redistribute it and/or modify</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="comment">  it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="comment">  the Free Software Foundation, either version 3 of the License, or</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="comment">  (at your option) any later version.</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="comment"></span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="comment">  FabGL is distributed in the hope that it will be useful,</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="comment">  but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="comment">  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="comment">  GNU General Public License for more details.</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="comment"></span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="comment">  You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="comment">  along with FabGL.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="comment"> */</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span> </div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span><span class="preprocessor">#include &quot;freertos/FreeRTOS.h&quot;</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span><span class="preprocessor">#include &quot;freertos/timers.h&quot;</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span> </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span><span class="preprocessor">#include &quot;<a class="code" href="fabglconf_8h.html">fabglconf.h</a>&quot;</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span><span class="preprocessor">#include &quot;<a class="code" href="fabutils_8h.html">fabutils.h</a>&quot;</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span><span class="preprocessor">#include &quot;<a class="code" href="ps2device_8h.html">comdrivers/ps2device.h</a>&quot;</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span><span class="preprocessor">#include &quot;<a class="code" href="fabui_8h.html">fabui.h</a>&quot;</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span> </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span><span class="keyword">namespace </span>fabgl {</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span> </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span> </div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="structfabgl_1_1_mouse_delta.html">   55</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structfabgl_1_1_mouse_delta.html">MouseDelta</a> {</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="structfabgl_1_1_mouse_delta_aa619bed5b36c23065f6b3c1faf8ac31d.html#aa619bed5b36c23065f6b3c1faf8ac31d">   56</a></span>  int16_t      <a class="code hl_variable" href="structfabgl_1_1_mouse_delta_aa619bed5b36c23065f6b3c1faf8ac31d.html#aa619bed5b36c23065f6b3c1faf8ac31d">deltaX</a>;             </div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="structfabgl_1_1_mouse_delta_a73ca8a4921ccb094005e774b883df68d.html#a73ca8a4921ccb094005e774b883df68d">   57</a></span>  int16_t      <a class="code hl_variable" href="structfabgl_1_1_mouse_delta_a73ca8a4921ccb094005e774b883df68d.html#a73ca8a4921ccb094005e774b883df68d">deltaY</a>;             </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="structfabgl_1_1_mouse_delta_a0653e51f2a47ce4166ce2aec3eb3dafb.html#a0653e51f2a47ce4166ce2aec3eb3dafb">   58</a></span>  int8_t       <a class="code hl_variable" href="structfabgl_1_1_mouse_delta_a0653e51f2a47ce4166ce2aec3eb3dafb.html#a0653e51f2a47ce4166ce2aec3eb3dafb">deltaZ</a>;             </div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="structfabgl_1_1_mouse_delta_a1d15efa837d051c0c3107a2a694b344a.html#a1d15efa837d051c0c3107a2a694b344a">   59</a></span>  <a class="code hl_struct" href="structfabgl_1_1_mouse_buttons.html">MouseButtons</a> <a class="code hl_variable" href="structfabgl_1_1_mouse_delta_a1d15efa837d051c0c3107a2a694b344a.html#a1d15efa837d051c0c3107a2a694b344a">buttons</a>;            </div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="structfabgl_1_1_mouse_delta_a3e4810c2db3fe2f9e3a390156574fcd7.html#a3e4810c2db3fe2f9e3a390156574fcd7">   60</a></span>  uint8_t      <a class="code hl_variable" href="structfabgl_1_1_mouse_delta_a3e4810c2db3fe2f9e3a390156574fcd7.html#a3e4810c2db3fe2f9e3a390156574fcd7">overflowX</a> : 1;      </div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="structfabgl_1_1_mouse_delta_a2a35463fd25699d8601ebe3588973323.html#a2a35463fd25699d8601ebe3588973323">   61</a></span>  uint8_t      <a class="code hl_variable" href="structfabgl_1_1_mouse_delta_a2a35463fd25699d8601ebe3588973323.html#a2a35463fd25699d8601ebe3588973323">overflowY</a> : 1;      </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span>};</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span> </div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span> </div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="structfabgl_1_1_mouse_packet.html">   68</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structfabgl_1_1_mouse_packet.html">MousePacket</a> {</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>  uint8_t data[4];</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span>};</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span> </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="group___enumerations_ga1a15f1712ba14a6877038ffe9c6f7708.html#ga1a15f1712ba14a6877038ffe9c6f7708">   76</a></span><span class="keyword">enum</span> <a class="code hl_enumeration" href="group___enumerations_ga1a15f1712ba14a6877038ffe9c6f7708.html#ga1a15f1712ba14a6877038ffe9c6f7708">MouseType</a> {</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="group___enumerations_ga1a15f1712ba14a6877038ffe9c6f7708.html#gga1a15f1712ba14a6877038ffe9c6f7708a64426cb7833b3604fe0ab5d0eec32edf">   77</a></span>  <a class="code hl_enumvalue" href="group___enumerations_ga1a15f1712ba14a6877038ffe9c6f7708.html#gga1a15f1712ba14a6877038ffe9c6f7708a64426cb7833b3604fe0ab5d0eec32edf">LegacyMouse</a>,    </div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="group___enumerations_ga1a15f1712ba14a6877038ffe9c6f7708.html#gga1a15f1712ba14a6877038ffe9c6f7708a2e71c963cb7659a2783aa306391051ec">   78</a></span>  <a class="code hl_enumvalue" href="group___enumerations_ga1a15f1712ba14a6877038ffe9c6f7708.html#gga1a15f1712ba14a6877038ffe9c6f7708a2e71c963cb7659a2783aa306391051ec">Intellimouse</a>,   </div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>};</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span> </div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span> </div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"><a class="line" href="classfabgl_1_1_mouse.html">  111</a></span><span class="keyword">class </span><a class="code hl_class" href="classfabgl_1_1_mouse.html">Mouse</a> : <span class="keyword">public</span> <a class="code hl_class" href="classfabgl_1_1_p_s2_device.html">PS2Device</a> {</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span> </div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span> </div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span>  <a class="code hl_class" href="classfabgl_1_1_mouse.html">Mouse</a>();</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span> </div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>  <a class="code hl_class" href="classfabgl_1_1_mouse.html">~Mouse</a>();</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span> </div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_mouse_a56921ef9b7157bb48751c7517531a798.html#a56921ef9b7157bb48751c7517531a798">begin</a>(gpio_num_t clkGPIO, gpio_num_t dataGPIO);</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span> </div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno">  152</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_mouse_a56921ef9b7157bb48751c7517531a798.html#a56921ef9b7157bb48751c7517531a798">begin</a>(<span class="keywordtype">int</span> PS2Port);</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span> </div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno">  159</span>  <span class="keywordtype">bool</span> <a class="code hl_function" href="classfabgl_1_1_mouse_a50910ef42a65d4c139af341f1ef2323f.html#a50910ef42a65d4c139af341f1ef2323f">reset</a>();</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno">  160</span> </div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"><a class="line" href="classfabgl_1_1_mouse_a5c7f3389d06c1d96914e8a15eddc8864.html#a5c7f3389d06c1d96914e8a15eddc8864">  168</a></span>  <span class="keywordtype">bool</span> <a class="code hl_function" href="classfabgl_1_1_mouse_a5c7f3389d06c1d96914e8a15eddc8864.html#a5c7f3389d06c1d96914e8a15eddc8864">isMouseAvailable</a>() { <span class="keywordflow">return</span> m_mouseAvailable; }</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno">  169</span> </div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno">  175</span>  <span class="keywordtype">int</span> <a class="code hl_function" href="classfabgl_1_1_mouse_a9f62cc2900d28231ffc61d200af2aafa.html#a9f62cc2900d28231ffc61d200af2aafa">getPacketSize</a>();</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno">  176</span> </div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno">  182</span>  <span class="keywordtype">bool</span> <a class="code hl_function" href="classfabgl_1_1_mouse_a3fd3cdfc66306ff22b53325aeb4e2c64.html#a3fd3cdfc66306ff22b53325aeb4e2c64">packetAvailable</a>();</div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno">  183</span> </div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno">  198</span>  <span class="keywordtype">bool</span> <a class="code hl_function" href="classfabgl_1_1_mouse_a11d4bf156584e08773498e4de00ca1ff.html#a11d4bf156584e08773498e4de00ca1ff">getNextPacket</a>(<a class="code hl_struct" href="structfabgl_1_1_mouse_packet.html">MousePacket</a> * packet, <span class="keywordtype">int</span> timeOutMS = -1, <span class="keywordtype">bool</span> requestResendOnTimeOut = <span class="keyword">false</span>);</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno">  199</span> </div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno">  205</span>  <span class="keywordtype">bool</span> <a class="code hl_function" href="classfabgl_1_1_mouse_a231264f15f33e8986765d7644c0c3615.html#a231264f15f33e8986765d7644c0c3615">deltaAvailable</a>();</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno">  206</span> </div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno">  221</span>  <span class="keywordtype">bool</span> <a class="code hl_function" href="classfabgl_1_1_mouse_a72788b215173ebeed6b8fe0f40368c90.html#a72788b215173ebeed6b8fe0f40368c90">getNextDelta</a>(<a class="code hl_struct" href="structfabgl_1_1_mouse_delta.html">MouseDelta</a> * delta, <span class="keywordtype">int</span> timeOutMS = -1, <span class="keywordtype">bool</span> requestResendOnTimeOut = <span class="keyword">false</span>);</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno">  222</span> </div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"><a class="line" href="classfabgl_1_1_mouse_a47344d7eecf20504d7ea80020aaa0b73.html#a47344d7eecf20504d7ea80020aaa0b73">  232</a></span>  <span class="keywordtype">bool</span> <a class="code hl_function" href="classfabgl_1_1_mouse_a47344d7eecf20504d7ea80020aaa0b73.html#a47344d7eecf20504d7ea80020aaa0b73">setSampleRate</a>(<span class="keywordtype">int</span> value) { <span class="keywordflow">return</span> send_cmdSetSampleRate(value); }</div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno">  233</span> </div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"><a class="line" href="classfabgl_1_1_mouse_a1186aeacb40aa5879e71862695140222.html#a1186aeacb40aa5879e71862695140222">  244</a></span>  <span class="keywordtype">bool</span> <a class="code hl_function" href="classfabgl_1_1_mouse_a1186aeacb40aa5879e71862695140222.html#a1186aeacb40aa5879e71862695140222">setResolution</a>(<span class="keywordtype">int</span> value) { <span class="keywordflow">return</span> send_cmdSetResolution(value); }</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno">  245</span> </div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"><a class="line" href="classfabgl_1_1_mouse_a1e455147c9396652a32d7b668a0e27e7.html#a1e455147c9396652a32d7b668a0e27e7">  255</a></span>  <span class="keywordtype">bool</span> <a class="code hl_function" href="classfabgl_1_1_mouse_a1e455147c9396652a32d7b668a0e27e7.html#a1e455147c9396652a32d7b668a0e27e7">setScaling</a>(<span class="keywordtype">int</span> value) { <span class="keywordflow">return</span> send_cmdSetScaling(value); }</div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno">  256</span> </div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno">  274</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_mouse_a3a139c6e0877d280a65924a0092a7f76.html#a3a139c6e0877d280a65924a0092a7f76">setupAbsolutePositioner</a>(<span class="keywordtype">int</span> <a class="code hl_variable" href="displaycontroller_8h_a2474a5474cbff19523a51eb1de01cda4.html#a2474a5474cbff19523a51eb1de01cda4">width</a>, <span class="keywordtype">int</span> <a class="code hl_variable" href="displaycontroller_8h_ad12fc34ce789bce6c8a05d8a17138534.html#ad12fc34ce789bce6c8a05d8a17138534">height</a>, <span class="keywordtype">bool</span> createAbsolutePositionsQueue, <a class="code hl_class" href="classfabgl_1_1_bitmapped_display_controller.html">BitmappedDisplayController</a> * updateDisplayController = <span class="keyword">nullptr</span>, <a class="code hl_class" href="classfabgl_1_1ui_app.html">uiApp</a> * app = <span class="keyword">nullptr</span>);</div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno">  275</span> </div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"><a class="line" href="classfabgl_1_1_mouse_a823914d949a5510b933dcfb335e36ab1.html#a823914d949a5510b933dcfb335e36ab1">  281</a></span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_mouse_a823914d949a5510b933dcfb335e36ab1.html#a823914d949a5510b933dcfb335e36ab1">setUIApp</a>(<a class="code hl_class" href="classfabgl_1_1ui_app.html">uiApp</a> * app) { m_uiApp = app; }</div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno">  282</span> </div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno">  286</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_mouse_a3f7c9c26b1d53a42eda487efa8f7e546.html#a3f7c9c26b1d53a42eda487efa8f7e546">terminateAbsolutePositioner</a>();</div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno">  287</span> </div>
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno">  308</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_mouse_af43b281ab7ec8480fc8ea6092f01a12a.html#af43b281ab7ec8480fc8ea6092f01a12a">updateAbsolutePosition</a>(<a class="code hl_struct" href="structfabgl_1_1_mouse_delta.html">MouseDelta</a> * delta);</div>
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno">  309</span> </div>
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno"><a class="line" href="classfabgl_1_1_mouse_a001ac4a1061bd8cc88cc1e1d8252d6a3.html#a001ac4a1061bd8cc88cc1e1d8252d6a3">  313</a></span>  <a class="code hl_struct" href="structfabgl_1_1_mouse_status.html">MouseStatus</a> &amp; <a class="code hl_function" href="classfabgl_1_1_mouse_a001ac4a1061bd8cc88cc1e1d8252d6a3.html#a001ac4a1061bd8cc88cc1e1d8252d6a3">status</a>() { <span class="keywordflow">return</span> m_status; }</div>
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno">  314</span> </div>
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno">  323</span>  <span class="keywordtype">int</span> <a class="code hl_function" href="classfabgl_1_1_mouse_adcc67a74d344caca0d4cbcbdba844519.html#adcc67a74d344caca0d4cbcbdba844519">availableStatus</a>();</div>
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno">  324</span> </div>
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno">  344</span>  <a class="code hl_struct" href="structfabgl_1_1_mouse_status.html">MouseStatus</a> <a class="code hl_function" href="classfabgl_1_1_mouse_abc9072ef74a767f7b1f39880df870a96.html#abc9072ef74a767f7b1f39880df870a96">getNextStatus</a>(<span class="keywordtype">int</span> timeOutMS = -1);</div>
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno">  345</span> </div>
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno"><a class="line" href="classfabgl_1_1_mouse_a93d9f415712840a5ee783680e65ce0d3.html#a93d9f415712840a5ee783680e65ce0d3">  353</a></span>  <span class="keywordtype">int</span> &amp; <a class="code hl_function" href="classfabgl_1_1_mouse_a93d9f415712840a5ee783680e65ce0d3.html#a93d9f415712840a5ee783680e65ce0d3">movementAcceleration</a>() { <span class="keywordflow">return</span> m_movementAcceleration; }</div>
<div class="line"><a id="l00354" name="l00354"></a><span class="lineno">  354</span> </div>
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno"><a class="line" href="classfabgl_1_1_mouse_a37498cfb25e63da6f841cc2e16f7ced4.html#a37498cfb25e63da6f841cc2e16f7ced4">  362</a></span>  <span class="keywordtype">int</span> &amp; <a class="code hl_function" href="classfabgl_1_1_mouse_a37498cfb25e63da6f841cc2e16f7ced4.html#a37498cfb25e63da6f841cc2e16f7ced4">wheelAcceleration</a>()    { <span class="keywordflow">return</span> m_wheelAcceleration; }</div>
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno">  363</span> </div>
<div class="line"><a id="l00367" name="l00367"></a><span class="lineno">  367</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_mouse_aefe587a398d3614e3da20cad4b8e2845.html#aefe587a398d3614e3da20cad4b8e2845">emptyQueue</a>();</div>
<div class="line"><a id="l00368" name="l00368"></a><span class="lineno">  368</span> </div>
<div class="line"><a id="l00369" name="l00369"></a><span class="lineno">  369</span> </div>
<div class="line"><a id="l00373" name="l00373"></a><span class="lineno"><a class="line" href="classfabgl_1_1_mouse_afc85801bd90520c15ab4fe1004a45b02.html#afc85801bd90520c15ab4fe1004a45b02">  373</a></span>  <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_mouse_afc85801bd90520c15ab4fe1004a45b02.html#afc85801bd90520c15ab4fe1004a45b02">quickCheckHardware</a>()   { s_quickCheckHardware = <span class="keyword">true</span>; }</div>
<div class="line"><a id="l00374" name="l00374"></a><span class="lineno">  374</span> </div>
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno">  375</span> </div>
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno">  376</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno">  377</span> </div>
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno">  378</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> mouseUpdateTask(<span class="keywordtype">void</span> * arg);</div>
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno">  379</span>  <span class="keywordtype">bool</span> decodeMousePacket(<a class="code hl_struct" href="structfabgl_1_1_mouse_packet.html">MousePacket</a> * mousePacket, <a class="code hl_struct" href="structfabgl_1_1_mouse_delta.html">MouseDelta</a> * delta);</div>
<div class="line"><a id="l00380" name="l00380"></a><span class="lineno">  380</span> </div>
<div class="line"><a id="l00381" name="l00381"></a><span class="lineno">  381</span>  <span class="keyword">static</span> <span class="keywordtype">bool</span>     s_quickCheckHardware;</div>
<div class="line"><a id="l00382" name="l00382"></a><span class="lineno">  382</span> </div>
<div class="line"><a id="l00383" name="l00383"></a><span class="lineno">  383</span>  <span class="keywordtype">bool</span>            m_mouseAvailable;</div>
<div class="line"><a id="l00384" name="l00384"></a><span class="lineno">  384</span>  <a class="code hl_enumeration" href="group___enumerations_ga1a15f1712ba14a6877038ffe9c6f7708.html#ga1a15f1712ba14a6877038ffe9c6f7708">MouseType</a>       m_mouseType;</div>
<div class="line"><a id="l00385" name="l00385"></a><span class="lineno">  385</span> </div>
<div class="line"><a id="l00386" name="l00386"></a><span class="lineno">  386</span>  TaskHandle_t    m_mouseUpdateTask;</div>
<div class="line"><a id="l00387" name="l00387"></a><span class="lineno">  387</span> </div>
<div class="line"><a id="l00388" name="l00388"></a><span class="lineno">  388</span>  <span class="comment">// queue of one mouse packet</span></div>
<div class="line"><a id="l00389" name="l00389"></a><span class="lineno">  389</span>  QueueHandle_t   m_receivedPacket;</div>
<div class="line"><a id="l00390" name="l00390"></a><span class="lineno">  390</span> </div>
<div class="line"><a id="l00391" name="l00391"></a><span class="lineno">  391</span>  <span class="comment">// absolute position support</span></div>
<div class="line"><a id="l00392" name="l00392"></a><span class="lineno">  392</span>  <span class="keywordtype">bool</span>            m_absoluteUpdate;</div>
<div class="line"><a id="l00393" name="l00393"></a><span class="lineno">  393</span>  <a class="code hl_struct" href="structfabgl_1_1_size.html">Size</a>            m_area;</div>
<div class="line"><a id="l00394" name="l00394"></a><span class="lineno">  394</span>  <a class="code hl_struct" href="structfabgl_1_1_mouse_status.html">MouseStatus</a>     m_status;</div>
<div class="line"><a id="l00395" name="l00395"></a><span class="lineno">  395</span>  <a class="code hl_struct" href="structfabgl_1_1_mouse_status.html">MouseStatus</a>     m_prevStatus;</div>
<div class="line"><a id="l00396" name="l00396"></a><span class="lineno">  396</span>  int64_t         m_prevDeltaTime;</div>
<div class="line"><a id="l00397" name="l00397"></a><span class="lineno">  397</span>  <span class="keywordtype">int</span>             m_movementAcceleration;  <span class="comment">// reasonable values: 0...2000</span></div>
<div class="line"><a id="l00398" name="l00398"></a><span class="lineno">  398</span>  <span class="keywordtype">int</span>             m_wheelAcceleration;     <span class="comment">// reasonable values: 0...100000</span></div>
<div class="line"><a id="l00399" name="l00399"></a><span class="lineno">  399</span>  QueueHandle_t   m_absoluteQueue;         <span class="comment">// a queue of messages generated by updateAbsolutePosition()</span></div>
<div class="line"><a id="l00400" name="l00400"></a><span class="lineno">  400</span>  <a class="code hl_class" href="classfabgl_1_1_bitmapped_display_controller.html">BitmappedDisplayController</a> * m_updateDisplayController;</div>
<div class="line"><a id="l00401" name="l00401"></a><span class="lineno">  401</span> </div>
<div class="line"><a id="l00402" name="l00402"></a><span class="lineno">  402</span>  <a class="code hl_class" href="classfabgl_1_1ui_app.html">uiApp</a> *         m_uiApp;</div>
<div class="line"><a id="l00403" name="l00403"></a><span class="lineno">  403</span>};</div>
<div class="line"><a id="l00404" name="l00404"></a><span class="lineno">  404</span> </div>
<div class="line"><a id="l00405" name="l00405"></a><span class="lineno">  405</span> </div>
<div class="line"><a id="l00406" name="l00406"></a><span class="lineno">  406</span> </div>
<div class="line"><a id="l00407" name="l00407"></a><span class="lineno">  407</span>} <span class="comment">// end of namespace</span></div>
<div class="line"><a id="l00408" name="l00408"></a><span class="lineno">  408</span> </div>
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno">  409</span> </div>
<div class="line"><a id="l00410" name="l00410"></a><span class="lineno">  410</span> </div>
<div class="line"><a id="l00411" name="l00411"></a><span class="lineno">  411</span> </div>
<div class="line"><a id="l00412" name="l00412"></a><span class="lineno">  412</span> </div>
<div class="line"><a id="l00413" name="l00413"></a><span class="lineno">  413</span> </div>
<div class="line"><a id="l00414" name="l00414"></a><span class="lineno">  414</span> </div>
<div class="line"><a id="l00415" name="l00415"></a><span class="lineno">  415</span> </div>
<div class="line"><a id="l00416" name="l00416"></a><span class="lineno">  416</span> </div>
<div class="line"><a id="l00417" name="l00417"></a><span class="lineno">  417</span> </div>
<div class="ttc" id="aclassfabgl_1_1_bitmapped_display_controller_html"><div class="ttname"><a href="classfabgl_1_1_bitmapped_display_controller.html">fabgl::BitmappedDisplayController</a></div><div class="ttdoc">Represents the base abstract class for bitmapped display controllers.</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00751">displaycontroller.h:751</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_a001ac4a1061bd8cc88cc1e1d8252d6a3_html_a001ac4a1061bd8cc88cc1e1d8252d6a3"><div class="ttname"><a href="classfabgl_1_1_mouse_a001ac4a1061bd8cc88cc1e1d8252d6a3.html#a001ac4a1061bd8cc88cc1e1d8252d6a3">fabgl::Mouse::status</a></div><div class="ttdeci">MouseStatus &amp; status()</div><div class="ttdoc">Gets or sets current mouse status.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8h_source.html#l00313">mouse.h:313</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_a1186aeacb40aa5879e71862695140222_html_a1186aeacb40aa5879e71862695140222"><div class="ttname"><a href="classfabgl_1_1_mouse_a1186aeacb40aa5879e71862695140222.html#a1186aeacb40aa5879e71862695140222">fabgl::Mouse::setResolution</a></div><div class="ttdeci">bool setResolution(int value)</div><div class="ttdoc">Sets the resolution.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8h_source.html#l00244">mouse.h:244</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_a11d4bf156584e08773498e4de00ca1ff_html_a11d4bf156584e08773498e4de00ca1ff"><div class="ttname"><a href="classfabgl_1_1_mouse_a11d4bf156584e08773498e4de00ca1ff.html#a11d4bf156584e08773498e4de00ca1ff">fabgl::Mouse::getNextPacket</a></div><div class="ttdeci">bool getNextPacket(MousePacket *packet, int timeOutMS=-1, bool requestResendOnTimeOut=false)</div><div class="ttdoc">Gets a mouse raw movement (packet) from the queue.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8cpp_source.html#l00134">mouse.cpp:134</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_a1e455147c9396652a32d7b668a0e27e7_html_a1e455147c9396652a32d7b668a0e27e7"><div class="ttname"><a href="classfabgl_1_1_mouse_a1e455147c9396652a32d7b668a0e27e7.html#a1e455147c9396652a32d7b668a0e27e7">fabgl::Mouse::setScaling</a></div><div class="ttdeci">bool setScaling(int value)</div><div class="ttdoc">Sets the scaling.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8h_source.html#l00255">mouse.h:255</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_a231264f15f33e8986765d7644c0c3615_html_a231264f15f33e8986765d7644c0c3615"><div class="ttname"><a href="classfabgl_1_1_mouse_a231264f15f33e8986765d7644c0c3615.html#a231264f15f33e8986765d7644c0c3615">fabgl::Mouse::deltaAvailable</a></div><div class="ttdeci">bool deltaAvailable()</div><div class="ttdoc">Determines if there is a mouse movement available in the queue.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8cpp_source.html#l00140">mouse.cpp:140</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_a37498cfb25e63da6f841cc2e16f7ced4_html_a37498cfb25e63da6f841cc2e16f7ced4"><div class="ttname"><a href="classfabgl_1_1_mouse_a37498cfb25e63da6f841cc2e16f7ced4.html#a37498cfb25e63da6f841cc2e16f7ced4">fabgl::Mouse::wheelAcceleration</a></div><div class="ttdeci">int &amp; wheelAcceleration()</div><div class="ttdoc">Gets or sets wheel acceleration factor.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8h_source.html#l00362">mouse.h:362</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_a3a139c6e0877d280a65924a0092a7f76_html_a3a139c6e0877d280a65924a0092a7f76"><div class="ttname"><a href="classfabgl_1_1_mouse_a3a139c6e0877d280a65924a0092a7f76.html#a3a139c6e0877d280a65924a0092a7f76">fabgl::Mouse::setupAbsolutePositioner</a></div><div class="ttdeci">void setupAbsolutePositioner(int width, int height, bool createAbsolutePositionsQueue, BitmappedDisplayController *updateDisplayController=nullptr, uiApp *app=nullptr)</div><div class="ttdoc">Initializes absolute position handler.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8cpp_source.html#l00194">mouse.cpp:194</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_a3f7c9c26b1d53a42eda487efa8f7e546_html_a3f7c9c26b1d53a42eda487efa8f7e546"><div class="ttname"><a href="classfabgl_1_1_mouse_a3f7c9c26b1d53a42eda487efa8f7e546.html#a3f7c9c26b1d53a42eda487efa8f7e546">fabgl::Mouse::terminateAbsolutePositioner</a></div><div class="ttdeci">void terminateAbsolutePositioner()</div><div class="ttdoc">Terminates absolute position handler.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8cpp_source.html#l00224">mouse.cpp:224</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_a3fd3cdfc66306ff22b53325aeb4e2c64_html_a3fd3cdfc66306ff22b53325aeb4e2c64"><div class="ttname"><a href="classfabgl_1_1_mouse_a3fd3cdfc66306ff22b53325aeb4e2c64.html#a3fd3cdfc66306ff22b53325aeb4e2c64">fabgl::Mouse::packetAvailable</a></div><div class="ttdeci">bool packetAvailable()</div><div class="ttdoc">Determines if there is a raw mouse movement available in the queue.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8cpp_source.html#l00128">mouse.cpp:128</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_a47344d7eecf20504d7ea80020aaa0b73_html_a47344d7eecf20504d7ea80020aaa0b73"><div class="ttname"><a href="classfabgl_1_1_mouse_a47344d7eecf20504d7ea80020aaa0b73.html#a47344d7eecf20504d7ea80020aaa0b73">fabgl::Mouse::setSampleRate</a></div><div class="ttdeci">bool setSampleRate(int value)</div><div class="ttdoc">Sets the maximum rate of mouse movements reporting.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8h_source.html#l00232">mouse.h:232</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_a50910ef42a65d4c139af341f1ef2323f_html_a50910ef42a65d4c139af341f1ef2323f"><div class="ttname"><a href="classfabgl_1_1_mouse_a50910ef42a65d4c139af341f1ef2323f.html#a50910ef42a65d4c139af341f1ef2323f">fabgl::Mouse::reset</a></div><div class="ttdeci">bool reset()</div><div class="ttdoc">Sends a Reset command to the mouse.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8cpp_source.html#l00091">mouse.cpp:91</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_a56921ef9b7157bb48751c7517531a798_html_a56921ef9b7157bb48751c7517531a798"><div class="ttname"><a href="classfabgl_1_1_mouse_a56921ef9b7157bb48751c7517531a798.html#a56921ef9b7157bb48751c7517531a798">fabgl::Mouse::begin</a></div><div class="ttdeci">void begin(gpio_num_t clkGPIO, gpio_num_t dataGPIO)</div><div class="ttdoc">Initializes Mouse specifying CLOCK and DATA GPIOs.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8cpp_source.html#l00083">mouse.cpp:83</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_a5c7f3389d06c1d96914e8a15eddc8864_html_a5c7f3389d06c1d96914e8a15eddc8864"><div class="ttname"><a href="classfabgl_1_1_mouse_a5c7f3389d06c1d96914e8a15eddc8864.html#a5c7f3389d06c1d96914e8a15eddc8864">fabgl::Mouse::isMouseAvailable</a></div><div class="ttdeci">bool isMouseAvailable()</div><div class="ttdoc">Checks if mouse has been detected and correctly initialized.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8h_source.html#l00168">mouse.h:168</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_a72788b215173ebeed6b8fe0f40368c90_html_a72788b215173ebeed6b8fe0f40368c90"><div class="ttname"><a href="classfabgl_1_1_mouse_a72788b215173ebeed6b8fe0f40368c90.html#a72788b215173ebeed6b8fe0f40368c90">fabgl::Mouse::getNextDelta</a></div><div class="ttdeci">bool getNextDelta(MouseDelta *delta, int timeOutMS=-1, bool requestResendOnTimeOut=false)</div><div class="ttdoc">Gets a mouse movement from the queue.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8cpp_source.html#l00187">mouse.cpp:187</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_a823914d949a5510b933dcfb335e36ab1_html_a823914d949a5510b933dcfb335e36ab1"><div class="ttname"><a href="classfabgl_1_1_mouse_a823914d949a5510b933dcfb335e36ab1.html#a823914d949a5510b933dcfb335e36ab1">fabgl::Mouse::setUIApp</a></div><div class="ttdeci">void setUIApp(uiApp *app)</div><div class="ttdoc">Sets current UI app.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8h_source.html#l00281">mouse.h:281</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_a93d9f415712840a5ee783680e65ce0d3_html_a93d9f415712840a5ee783680e65ce0d3"><div class="ttname"><a href="classfabgl_1_1_mouse_a93d9f415712840a5ee783680e65ce0d3.html#a93d9f415712840a5ee783680e65ce0d3">fabgl::Mouse::movementAcceleration</a></div><div class="ttdeci">int &amp; movementAcceleration()</div><div class="ttdoc">Gets or set mouse movement acceleration factor.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8h_source.html#l00353">mouse.h:353</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_a9f62cc2900d28231ffc61d200af2aafa_html_a9f62cc2900d28231ffc61d200af2aafa"><div class="ttname"><a href="classfabgl_1_1_mouse_a9f62cc2900d28231ffc61d200af2aafa.html#a9f62cc2900d28231ffc61d200af2aafa">fabgl::Mouse::getPacketSize</a></div><div class="ttdeci">int getPacketSize()</div><div class="ttdoc">Gets mouse packet size.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8cpp_source.html#l00122">mouse.cpp:122</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_abc9072ef74a767f7b1f39880df870a96_html_abc9072ef74a767f7b1f39880df870a96"><div class="ttname"><a href="classfabgl_1_1_mouse_abc9072ef74a767f7b1f39880df870a96.html#abc9072ef74a767f7b1f39880df870a96">fabgl::Mouse::getNextStatus</a></div><div class="ttdeci">MouseStatus getNextStatus(int timeOutMS=-1)</div><div class="ttdoc">Gets the next status from the status queue.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8cpp_source.html#l00377">mouse.cpp:377</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_adcc67a74d344caca0d4cbcbdba844519_html_adcc67a74d344caca0d4cbcbdba844519"><div class="ttname"><a href="classfabgl_1_1_mouse_adcc67a74d344caca0d4cbcbdba844519.html#adcc67a74d344caca0d4cbcbdba844519">fabgl::Mouse::availableStatus</a></div><div class="ttdeci">int availableStatus()</div><div class="ttdoc">Gets the number of available mouse status.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8cpp_source.html#l00371">mouse.cpp:371</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_aefe587a398d3614e3da20cad4b8e2845_html_aefe587a398d3614e3da20cad4b8e2845"><div class="ttname"><a href="classfabgl_1_1_mouse_aefe587a398d3614e3da20cad4b8e2845.html#aefe587a398d3614e3da20cad4b8e2845">fabgl::Mouse::emptyQueue</a></div><div class="ttdeci">void emptyQueue()</div><div class="ttdoc">Empties the mouse status and events queue.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8cpp_source.html#l00386">mouse.cpp:386</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_af43b281ab7ec8480fc8ea6092f01a12a_html_af43b281ab7ec8480fc8ea6092f01a12a"><div class="ttname"><a href="classfabgl_1_1_mouse_af43b281ab7ec8480fc8ea6092f01a12a.html#af43b281ab7ec8480fc8ea6092f01a12a">fabgl::Mouse::updateAbsolutePosition</a></div><div class="ttdeci">void updateAbsolutePosition(MouseDelta *delta)</div><div class="ttdoc">Updates absolute position from the specified mouse delta event.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8cpp_source.html#l00236">mouse.cpp:236</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_afc85801bd90520c15ab4fe1004a45b02_html_afc85801bd90520c15ab4fe1004a45b02"><div class="ttname"><a href="classfabgl_1_1_mouse_afc85801bd90520c15ab4fe1004a45b02.html#afc85801bd90520c15ab4fe1004a45b02">fabgl::Mouse::quickCheckHardware</a></div><div class="ttdeci">static void quickCheckHardware()</div><div class="ttdoc">Disable re-try when a mouse is not found.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8h_source.html#l00373">mouse.h:373</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_mouse_html"><div class="ttname"><a href="classfabgl_1_1_mouse.html">fabgl::Mouse</a></div><div class="ttdoc">The PS2 Mouse controller class.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8h_source.html#l00111">mouse.h:111</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_p_s2_device_html"><div class="ttname"><a href="classfabgl_1_1_p_s2_device.html">fabgl::PS2Device</a></div><div class="ttdoc">Base class for PS2 devices (like mouse or keyboard).</div><div class="ttdef"><b>Definition:</b> <a href="ps2device_8h_source.html#l00070">ps2device.h:70</a></div></div>
<div class="ttc" id="aclassfabgl_1_1ui_app_html"><div class="ttname"><a href="classfabgl_1_1ui_app.html">fabgl::uiApp</a></div><div class="ttdoc">Represents the whole application base class.</div><div class="ttdef"><b>Definition:</b> <a href="fabui_8h_source.html#l03103">fabui.h:3103</a></div></div>
<div class="ttc" id="adisplaycontroller_8h_a2474a5474cbff19523a51eb1de01cda4_html_a2474a5474cbff19523a51eb1de01cda4"><div class="ttname"><a href="displaycontroller_8h_a2474a5474cbff19523a51eb1de01cda4.html#a2474a5474cbff19523a51eb1de01cda4">width</a></div><div class="ttdeci">uint8_t width</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00002">displaycontroller.h:2</a></div></div>
<div class="ttc" id="adisplaycontroller_8h_ad12fc34ce789bce6c8a05d8a17138534_html_ad12fc34ce789bce6c8a05d8a17138534"><div class="ttname"><a href="displaycontroller_8h_ad12fc34ce789bce6c8a05d8a17138534.html#ad12fc34ce789bce6c8a05d8a17138534">height</a></div><div class="ttdeci">uint8_t height</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00003">displaycontroller.h:3</a></div></div>
<div class="ttc" id="afabglconf_8h_html"><div class="ttname"><a href="fabglconf_8h.html">fabglconf.h</a></div><div class="ttdoc">This file contains FabGL library configuration settings, like number of supported colors,...</div></div>
<div class="ttc" id="afabui_8h_html"><div class="ttname"><a href="fabui_8h.html">fabui.h</a></div><div class="ttdoc">This file contains all classes related to FabGL Graphical User Interface.</div></div>
<div class="ttc" id="afabutils_8h_html"><div class="ttname"><a href="fabutils_8h.html">fabutils.h</a></div><div class="ttdoc">This file contains some utility classes and functions.</div></div>
<div class="ttc" id="agroup___enumerations_ga1a15f1712ba14a6877038ffe9c6f7708_html_ga1a15f1712ba14a6877038ffe9c6f7708"><div class="ttname"><a href="group___enumerations_ga1a15f1712ba14a6877038ffe9c6f7708.html#ga1a15f1712ba14a6877038ffe9c6f7708">fabgl::MouseType</a></div><div class="ttdeci">MouseType</div><div class="ttdoc">Describes mouse type.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8h_source.html#l00076">mouse.h:76</a></div></div>
<div class="ttc" id="agroup___enumerations_ga1a15f1712ba14a6877038ffe9c6f7708_html_gga1a15f1712ba14a6877038ffe9c6f7708a2e71c963cb7659a2783aa306391051ec"><div class="ttname"><a href="group___enumerations_ga1a15f1712ba14a6877038ffe9c6f7708.html#gga1a15f1712ba14a6877038ffe9c6f7708a2e71c963cb7659a2783aa306391051ec">fabgl::Intellimouse</a></div><div class="ttdeci">@ Intellimouse</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8h_source.html#l00078">mouse.h:78</a></div></div>
<div class="ttc" id="agroup___enumerations_ga1a15f1712ba14a6877038ffe9c6f7708_html_gga1a15f1712ba14a6877038ffe9c6f7708a64426cb7833b3604fe0ab5d0eec32edf"><div class="ttname"><a href="group___enumerations_ga1a15f1712ba14a6877038ffe9c6f7708.html#gga1a15f1712ba14a6877038ffe9c6f7708a64426cb7833b3604fe0ab5d0eec32edf">fabgl::LegacyMouse</a></div><div class="ttdeci">@ LegacyMouse</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8h_source.html#l00077">mouse.h:77</a></div></div>
<div class="ttc" id="aps2device_8h_html"><div class="ttname"><a href="ps2device_8h.html">ps2device.h</a></div><div class="ttdoc">This file contains fabgl::PS2Device definition.</div></div>
<div class="ttc" id="astructfabgl_1_1_mouse_buttons_html"><div class="ttname"><a href="structfabgl_1_1_mouse_buttons.html">fabgl::MouseButtons</a></div><div class="ttdoc">Describes mouse buttons status.</div><div class="ttdef"><b>Definition:</b> <a href="fabutils_8h_source.html#l00312">fabutils.h:312</a></div></div>
<div class="ttc" id="astructfabgl_1_1_mouse_delta_a0653e51f2a47ce4166ce2aec3eb3dafb_html_a0653e51f2a47ce4166ce2aec3eb3dafb"><div class="ttname"><a href="structfabgl_1_1_mouse_delta_a0653e51f2a47ce4166ce2aec3eb3dafb.html#a0653e51f2a47ce4166ce2aec3eb3dafb">fabgl::MouseDelta::deltaZ</a></div><div class="ttdeci">int8_t deltaZ</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8h_source.html#l00058">mouse.h:58</a></div></div>
<div class="ttc" id="astructfabgl_1_1_mouse_delta_a1d15efa837d051c0c3107a2a694b344a_html_a1d15efa837d051c0c3107a2a694b344a"><div class="ttname"><a href="structfabgl_1_1_mouse_delta_a1d15efa837d051c0c3107a2a694b344a.html#a1d15efa837d051c0c3107a2a694b344a">fabgl::MouseDelta::buttons</a></div><div class="ttdeci">MouseButtons buttons</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8h_source.html#l00059">mouse.h:59</a></div></div>
<div class="ttc" id="astructfabgl_1_1_mouse_delta_a2a35463fd25699d8601ebe3588973323_html_a2a35463fd25699d8601ebe3588973323"><div class="ttname"><a href="structfabgl_1_1_mouse_delta_a2a35463fd25699d8601ebe3588973323.html#a2a35463fd25699d8601ebe3588973323">fabgl::MouseDelta::overflowY</a></div><div class="ttdeci">uint8_t overflowY</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8h_source.html#l00061">mouse.h:61</a></div></div>
<div class="ttc" id="astructfabgl_1_1_mouse_delta_a3e4810c2db3fe2f9e3a390156574fcd7_html_a3e4810c2db3fe2f9e3a390156574fcd7"><div class="ttname"><a href="structfabgl_1_1_mouse_delta_a3e4810c2db3fe2f9e3a390156574fcd7.html#a3e4810c2db3fe2f9e3a390156574fcd7">fabgl::MouseDelta::overflowX</a></div><div class="ttdeci">uint8_t overflowX</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8h_source.html#l00060">mouse.h:60</a></div></div>
<div class="ttc" id="astructfabgl_1_1_mouse_delta_a73ca8a4921ccb094005e774b883df68d_html_a73ca8a4921ccb094005e774b883df68d"><div class="ttname"><a href="structfabgl_1_1_mouse_delta_a73ca8a4921ccb094005e774b883df68d.html#a73ca8a4921ccb094005e774b883df68d">fabgl::MouseDelta::deltaY</a></div><div class="ttdeci">int16_t deltaY</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8h_source.html#l00057">mouse.h:57</a></div></div>
<div class="ttc" id="astructfabgl_1_1_mouse_delta_aa619bed5b36c23065f6b3c1faf8ac31d_html_aa619bed5b36c23065f6b3c1faf8ac31d"><div class="ttname"><a href="structfabgl_1_1_mouse_delta_aa619bed5b36c23065f6b3c1faf8ac31d.html#aa619bed5b36c23065f6b3c1faf8ac31d">fabgl::MouseDelta::deltaX</a></div><div class="ttdeci">int16_t deltaX</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8h_source.html#l00056">mouse.h:56</a></div></div>
<div class="ttc" id="astructfabgl_1_1_mouse_delta_html"><div class="ttname"><a href="structfabgl_1_1_mouse_delta.html">fabgl::MouseDelta</a></div><div class="ttdoc">Describes mouse movement and buttons status.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8h_source.html#l00055">mouse.h:55</a></div></div>
<div class="ttc" id="astructfabgl_1_1_mouse_packet_html"><div class="ttname"><a href="structfabgl_1_1_mouse_packet.html">fabgl::MousePacket</a></div><div class="ttdoc">Contains raw data received from mouse.</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8h_source.html#l00068">mouse.h:68</a></div></div>
<div class="ttc" id="astructfabgl_1_1_mouse_status_html"><div class="ttname"><a href="structfabgl_1_1_mouse_status.html">fabgl::MouseStatus</a></div><div class="ttdoc">Describes mouse absolute position, scroll wheel delta and buttons status.</div><div class="ttdef"><b>Definition:</b> <a href="fabutils_8h_source.html#l00325">fabutils.h:325</a></div></div>
<div class="ttc" id="astructfabgl_1_1_size_html"><div class="ttname"><a href="structfabgl_1_1_size.html">fabgl::Size</a></div><div class="ttdoc">Represents a bidimensional size.</div><div class="ttdef"><b>Definition:</b> <a href="fabutils_8h_source.html#l00257">fabutils.h:257</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_82e8a5453e51b0b6168db3257bd0eaab.html">devdrivers</a></li><li class="navelem"><a class="el" href="mouse_8h.html">mouse.h</a></li>
    <li class="footer">Generated on Mon Aug 29 2022 13:52:04 for FabGL by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
  </ul>
</div>
</body>
</html>
